IModel.CanRelateAny method

Namespace: NextDesign.Core

Description

Checks if this instance can be associated with the given model. Returns true if it can be related by any reference field in this instance. If the model to be associated with itself or the deleted model is a temporary proxy, False is returned. Note that owned fields are not included.

argument

Name Type Description
opposite IModel The model to associate
null cannot be specified.

Return value

  • bool

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException If null is specified for opposite